package com.kaigejava.template.hotdrink;

/**
 * Created by kaigejava on 2019/9/4.
 */
public class HotDrinkMainTest {
    public static void main(String[] args) {
        HotDrink coffee = new HotDrinkCoffee();
        coffee.prepareRecipe();
        HotDrink tea = new HotDrinkTea();
        System.out.println("==开始泡茶==");
        tea.prepareRecipe();
        System.out.println("*** hook test ***");
        HotDrinkTemplate hookTea = new TeaWithHook();
        hookTea.prepareRecipe();
    }
}
